﻿/*Web.config
 <system.net>
		<mailSettings>
			<smtp>
				<network host="yoursmtpserver" port="25" userName="username" password="password" defaultCredentials="true"/>
			</smtp>
		</mailSettings>
	</system.net>
 */

namespace BestEasyCMS.Framework.Email
{
    /// <summary>
    /// 邮箱服务接口
    /// </summary>
    public interface IEmailService
    {
        /// <summary>
        /// 发送邮件
        /// </summary>
        /// <param name="from">接收者</param>
        /// <param name="to">发送者</param>
        /// <param name="subject">主题</param>
        /// <param name="body">内容</param>
        void SendMail(string from, string to, string subject, string body);
    }
}
